package com.me.bbs.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.me.bbs.dto.AdminDTO;
import com.me.bbs.entity.Administrator;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lm
 * @since 2023-01-29
 */
public interface IAdministratorService extends IService<Administrator> {

    Page<AdminDTO> searchUser(Long forumId, String q, Long current, Long size);

    void addAdmin(Long forumId, Long userId);

    Page<AdminDTO> getAdmins(Long forumId, Long current, Long size);

    String getInfo(Long forumId);
}
